package avicit.im.lantop.basic.fieldmapset.domain;

import avicit.platform6.core.annotation.log.FieldRemark;
import avicit.platform6.core.annotation.log.LogField;
import avicit.platform6.core.domain.BeanBase;
import avicit.platform6.core.properties.PlatformConstant.LogType;

import javax.persistence.*;

/**
 * bean LantopFieldRelateSetItem Title:
 * 表LANTOP_FIELD_RELATE_SET_ITEM的PoJo类，也就是数据库映射类 Description: 字段对应设置明细信息
 * Copyriht: Copyright (c) 2012 Company: AVICIT Co., Ltd
 * 
 * @author AVICIT DEV
 * @version 1.0 Date: 2014-10-21 15:36
 * 
 */
@Entity
@Table(name = "LANTOP_FIELD_RELATE_SET_ITEM")
public class LantopFieldRelateSetItem extends BeanBase {

	private static final long serialVersionUID = 1L;
	@LogField
	@FieldRemark(column = "ID", field = "id", name = "字段对应设置详细ID")
	private String id; // ID
	private String orgId; // 组织ID
	private String deptId; // 部门ID
	private String sysId; // 系统标识ID
	@LogField
	@FieldRemark(column = "LANTOP_FIELD_RELATE_SET_ID", field = "lantopFieldRelateSetId", name = "字段对应设置信息ID")
	private String lantopFieldRelateSetId; // 字段对应设置信息ID
	@LogField
	@FieldRemark(column = "SOURCE_FIELD_NAME_EN", field = "sourceFieldNameEn", name = "源字段英文名")
	private String sourceFieldNameEn; // 源字段英文名
	@LogField
	@FieldRemark(column = "SOURCE_FIELD_NAME_CN", field = "sourceFieldNameCn", name = "源字段中文名")
	private String sourceFieldNameCn; // 源字段中文名
	@LogField
	@FieldRemark(column = "SOURCE_FIELD_TYPE", field = "sourceFieldType", name = "源字段类型")
	private String sourceFieldType; // 源字段类型
	@LogField
	@FieldRemark(column = "SOURCE_FIELD_LENGTH", field = "sourceFieldLength", name = "源字段长度")
	private String sourceFieldLength; // 源字段长度
	@LogField
	@FieldRemark(column = "TGT_FIELD_NAME_EN", field = "tgtFieldNameEn", name = "目标字段英文名")
	private String tgtFieldNameEn; // 目标字段英文名
	@LogField
	@FieldRemark(column = "TGT_FIELD_NAME_CN", field = "tgtFieldNameCn", name = "目标字段中文名")
	private String tgtFieldNameCn; // 目标字段中文名
	@LogField
	@FieldRemark(column = "TGT_FIELD_TYPE", field = "tgtFieldType", name = "目标字段类型")
	private String tgtFieldType; // 目标字段类型
	@LogField
	@FieldRemark(column = "TGT_FIELD_LENGTH", field = "tgtFieldLength", name = "目标字段长度")
	private String tgtFieldLength; // 目标字段长度
	private String secretLevel; // 密级
	private String sysApplicationId; // 多应用ID
	private String attribute01; // 预留字段1
	private String attribute02; // 预留字段2
	private String attribute03; // 预留字段3
	private String attribute04; // 预留字段4
	private String attribute05; // 预留字段5
	private String attribute06; // 预留字段6
	private String attribute07; // 预留字段7
	private String attribute08; // 预留字段8
	private java.util.Date attribute09; // 预留字段9
	private java.util.Date attribute10; // 预留字段10
	private java.math.BigDecimal attribute11; // 预留字段11
	private java.math.BigDecimal attribute12; // 预留字段12
	private java.math.BigDecimal attribute13; // 预留字段13
	private java.math.BigDecimal attribute14; // 预留字段14
	private java.math.BigDecimal attribute15; // 预留字段15

	@Id
	@Column(name = "ID", length = 50, nullable = false)
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "ORG_ID", length = 50, nullable = false)
	public String getOrgId() {
		return orgId;
	}

	public void setOrgId(String orgId) {
		this.orgId = orgId;
	}

	@Column(name = "DEPT_ID", length = 50, nullable = false)
	public String getDeptId() {
		return deptId;
	}

	public void setDeptId(String deptId) {
		this.deptId = deptId;
	}

	@Column(name = "SYS_ID", length = 50)
	public String getSysId() {
		return sysId;
	}

	public void setSysId(String sysId) {
		this.sysId = sysId;
	}

	@Column(name = "LANTOP_FIELD_RELATE_SET_ID", length = 50, nullable = false)
	public String getLantopFieldRelateSetId() {
		return lantopFieldRelateSetId;
	}

	public void setLantopFieldRelateSetId(String lantopFieldRelateSetId) {
		this.lantopFieldRelateSetId = lantopFieldRelateSetId;
	}

	@Column(name = "SOURCE_FIELD_NAME_EN", length = 200, nullable = false)
	public String getSourceFieldNameEn() {
		return sourceFieldNameEn;
	}

	public void setSourceFieldNameEn(String sourceFieldNameEn) {
		this.sourceFieldNameEn = sourceFieldNameEn;
	}

	@Column(name = "SOURCE_FIELD_NAME_CN", length = 200)
	public String getSourceFieldNameCn() {
		return sourceFieldNameCn;
	}

	public void setSourceFieldNameCn(String sourceFieldNameCn) {
		this.sourceFieldNameCn = sourceFieldNameCn;
	}

	@Column(name = "SOURCE_FIELD_TYPE", length = 50)
	public String getSourceFieldType() {
		return sourceFieldType;
	}

	public void setSourceFieldType(String sourceFieldType) {
		this.sourceFieldType = sourceFieldType;
	}

	@Column(name = "SOURCE_FIELD_LENGTH", length = 50)
	public String getSourceFieldLength() {
		return sourceFieldLength;
	}

	public void setSourceFieldLength(String sourceFieldLength) {
		this.sourceFieldLength = sourceFieldLength;
	}

	@Column(name = "TGT_FIELD_NAME_EN", length = 200, nullable = false)
	public String getTgtFieldNameEn() {
		return tgtFieldNameEn;
	}

	public void setTgtFieldNameEn(String tgtFieldNameEn) {
		this.tgtFieldNameEn = tgtFieldNameEn;
	}

	@Column(name = "TGT_FIELD_NAME_CN", length = 200)
	public String getTgtFieldNameCn() {
		return tgtFieldNameCn;
	}

	public void setTgtFieldNameCn(String tgtFieldNameCn) {
		this.tgtFieldNameCn = tgtFieldNameCn;
	}

	@Column(name = "TGT_FIELD_TYPE", length = 50)
	public String getTgtFieldType() {
		return tgtFieldType;
	}

	public void setTgtFieldType(String tgtFieldType) {
		this.tgtFieldType = tgtFieldType;
	}

	@Column(name = "TGT_FIELD_LENGTH", length = 50)
	public String getTgtFieldLength() {
		return tgtFieldLength;
	}

	public void setTgtFieldLength(String tgtFieldLength) {
		this.tgtFieldLength = tgtFieldLength;
	}

	@Column(name = "SECRET_LEVEL", length = 50)
	public String getSecretLevel() {
		return secretLevel;
	}

	public void setSecretLevel(String secretLevel) {
		this.secretLevel = secretLevel;
	}

	@Column(name = "SYS_APPLICATION_ID", length = 50)
	public String getSysApplicationId() {
		return sysApplicationId;
	}

	public void setSysApplicationId(String sysApplicationId) {
		this.sysApplicationId = sysApplicationId;
	}

	@Column(name = "ATTRIBUTE_01", length = 255)
	public String getAttribute01() {
		return attribute01;
	}

	public void setAttribute01(String attribute01) {
		this.attribute01 = attribute01;
	}

	@Column(name = "ATTRIBUTE_02", length = 255)
	public String getAttribute02() {
		return attribute02;
	}

	public void setAttribute02(String attribute02) {
		this.attribute02 = attribute02;
	}

	@Column(name = "ATTRIBUTE_03", length = 255)
	public String getAttribute03() {
		return attribute03;
	}

	public void setAttribute03(String attribute03) {
		this.attribute03 = attribute03;
	}

	@Column(name = "ATTRIBUTE_04", length = 255)
	public String getAttribute04() {
		return attribute04;
	}

	public void setAttribute04(String attribute04) {
		this.attribute04 = attribute04;
	}

	@Column(name = "ATTRIBUTE_05", length = 255)
	public String getAttribute05() {
		return attribute05;
	}

	public void setAttribute05(String attribute05) {
		this.attribute05 = attribute05;
	}

	@Column(name = "ATTRIBUTE_06", length = 255)
	public String getAttribute06() {
		return attribute06;
	}

	public void setAttribute06(String attribute06) {
		this.attribute06 = attribute06;
	}

	@Column(name = "ATTRIBUTE_07", length = 255)
	public String getAttribute07() {
		return attribute07;
	}

	public void setAttribute07(String attribute07) {
		this.attribute07 = attribute07;
	}

	@Column(name = "ATTRIBUTE_08", length = 255)
	public String getAttribute08() {
		return attribute08;
	}

	public void setAttribute08(String attribute08) {
		this.attribute08 = attribute08;
	}

	@Column(name = "ATTRIBUTE_09")
	public java.util.Date getAttribute09() {
		return attribute09;
	}

	public void setAttribute09(java.util.Date attribute09) {
		this.attribute09 = attribute09;
	}

	@Column(name = "ATTRIBUTE_10")
	public java.util.Date getAttribute10() {
		return attribute10;
	}

	public void setAttribute10(java.util.Date attribute10) {
		this.attribute10 = attribute10;
	}

	@Column(name = "ATTRIBUTE_11")
	public java.math.BigDecimal getAttribute11() {
		return attribute11;
	}

	public void setAttribute11(java.math.BigDecimal attribute11) {
		this.attribute11 = attribute11;
	}

	@Column(name = "ATTRIBUTE_12")
	public java.math.BigDecimal getAttribute12() {
		return attribute12;
	}

	public void setAttribute12(java.math.BigDecimal attribute12) {
		this.attribute12 = attribute12;
	}

	@Column(name = "ATTRIBUTE_13")
	public java.math.BigDecimal getAttribute13() {
		return attribute13;
	}

	public void setAttribute13(java.math.BigDecimal attribute13) {
		this.attribute13 = attribute13;
	}

	@Column(name = "ATTRIBUTE_14")
	public java.math.BigDecimal getAttribute14() {
		return attribute14;
	}

	public void setAttribute14(java.math.BigDecimal attribute14) {
		this.attribute14 = attribute14;
	}

	@Column(name = "ATTRIBUTE_15")
	public java.math.BigDecimal getAttribute15() {
		return attribute15;
	}

	public void setAttribute15(java.math.BigDecimal attribute15) {
		this.attribute15 = attribute15;
	}

	/**
	 * TODO 获取日志表单名称
	 * @return 
	 * @throws
	 */
	@Override
    @Transient
	public String getLogFormName() {
		if (super.logFormName == null || super.logFormName.equals("")) {
			return "字段对应设置模块";
		} else {
			return super.logFormName;
		}
	}

	/**
	 * TODO 获取日志标题
	 * @return 
	 * @throws
	 */
	@Override
    @Transient
	public String getLogTitle() {
		if (super.logTitle == null || super.logTitle.equals("")) {
			return "字段对应设置模块";
		} else {
			return super.logTitle;
		}
	}

	/**
	 * TODO 获取日志类型
	 * @return 
	 * @throws
	 */
	@Override
    @Transient
	public LogType getLogType() {
		if (super.logType == null || super.logType.equals("")) {
			return LogType.module_operate;
		} else {
			return super.logType;
		}
	}

}
